const mixin = {
  data() {
    return {
        tabaleHeight: '',
        Mobile: '',
    };
  },
  mounted(){
    this.GetMobile()
  },
  methods: {
    // 是否为手机端
    GetMobile() {
      const tipsHeight = this.$refs.tips.offsetHeight + "px";
      // console.log(tipsHeight)
      if (this.isMobile === "wap") {
        // 手机端逻辑
        this.tabaleHeight = `calc(100vh - ${tipsHeight} - 15px - 50px - 40px)`;
        // console.log(this.tabaleHeight)
        this.Mobile = "phone";
      } else {
        // 非手机端逻辑
        // tipsHeight提示框高度  50px分页高度 50px底部按钮高度 15px提示框距离表格顶部  20px大框内边距
        this.tabaleHeight = `calc(100vh - ${tipsHeight} - 50px - 50px - 15px - 20px )`;
        this.Mobile = "windows";
      }
    },
    // 分页改变时
    handleCurrentChange(index) {
      this.paramsquery.pageIndex = index;
      this.GetDataList();
    },
  },
};
export default mixin;
